package ua.ck.example.dao;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import ua.ck.example.domain.OrderDetail;

@Repository
public class OrderDetailDAOImpl implements OrderDetailDAO {
	@Autowired
	private SessionFactory sessionFactory;

	@Override
	public void addOrderDetail(OrderDetail orderDetail) {
		sessionFactory.getCurrentSession().save(orderDetail);
	}

}
